<?php 
/*
 module:		毕业生信息验证器
 create_time:	2020-07-20 19:37:43
 author:		
 contact:		
*/

namespace app\admin\validate;
use think\validate;

class Graduation extends validate {


	protected $rule = [
		'name'=>['require'],
		'student_num'=>['require'],
		'major'=>['require'],
		'class'=>['require'],
		'tel'=>['require'],
		'g_des'=>['require'],
		'u_name'=>['require'],
		'u_vocation'=>['require'],
		'u_positiion'=>['require'],
		'u_dangan'=>['require'],
	];

	protected $message = [
		'name.require'=>'姓名不能为空',
		'student_num.require'=>'学号不能为空',
		'major.require'=>'专业不能为空',
		'class.require'=>'班级不能为空',
		'tel.require'=>'毕业生联系电话不能为空',
		'g_des.require'=>'就业方向不能为空',
		'u_name.require'=>'单位名称不能为空',
		'u_vocation.require'=>'单位行业不能为空',
		'u_positiion.require'=>'工作职位类别不能为空',
		'u_dangan.require'=>'单位是否接收档案不能为空',
	];

	protected $scene  = [
		'add'=>['name','student_num','major','class','tel','g_des','u_name','u_vocation','u_positiion','u_dangan'],
		'update'=>['name','student_num','major','class','tel','g_des','u_name','u_vocation','u_positiion','u_dangan'],
	];



}

